<template>
  <div>
    <el-card>
      <div slot="header" class="header">
        <span>线上热门搜索</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            <i class="el-icon-more-outline " />
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
      <div class="contain">
        <el-row :gutter="10">
          <el-col :span="12">
            <Contain title="搜索用户数" num="12321" index="17.1" />
          </el-col>
          <el-col :span="12">
            <Contain title="人均搜索次数" num="2.7" index="26.2" />
          </el-col>
        </el-row>
      </div>
      <div class="footer">
        <el-table
          :data="data"
          style="width: 100%"
          border=""
        >
          <el-table-column
            type="index"
            label="排名"
            width="80"
          />
          <el-table-column
            prop="prop"
            label="搜索关键字"
            width="width"
          />
          <el-table-column
            prop="prop"
            label="用户数"
            width="width"
            sortable
          />
          <el-table-column
            prop="prop"
            label="周涨幅"
            width="width"
            sortable
          />
        </el-table>
        <el-pagination
          style="text-align:center"
          layout="prev, pager, next"
          :total="1000"
        />
      </div>
    </el-card>
  </div>
</template>

<script>

import Contain from './Contain/index.vue'
export default {
  name: 'Search',
  components: {
    Contain
  },
  data() {
    return {
      // 表格数据
      data: [{}]
    }
  }
}
</script>

<style scoped>
.header {
  display: flex;
  justify-content: space-between
}
</style>
